import {lazy} from "react"
import Home from "../views/Home"
const routes=[{
    path:'/dashboard',
    component:Home,
    title:"Dashboard",
    show:true,
    children:[{
        path:'/dashboard/fenxi',
        component:lazy(()=>import('../views/dashboard/Fenxi')),
        title:"分析页",
        show:true
    },
    {
        path:'/dashboard/gongzuo',
        component:lazy(()=>import('../views/dashboard/Gongzuo')),
        title:"工作页",
        show:true
    },
    {
        path:'/dashboard/jiankong',
        component:lazy(()=>import('../views/dashboard/Jiankong')),
        title:"监控页",
        show:true
    },

]
},{

    path:'/from',
    component:Home,
    title:"表单页",
    show:true,
    children:[{
        path:'/from/fenbu',
        component:lazy(()=>import('../views/from/Fenbu')),
        title:"分布表单",
        show:true
    },
    {
        path:'/from/gaoji',
        component:lazy(()=>import('../views/from/Gaoji')),
        title:"高级表单",
        show:true
    },
    {
        path:'/from/jichu',
        component:lazy(()=>import('../views/from/Jichu')),
        title:"基础表单",
        show:true
    },

]

},{
    path:'/list',
    component:Home,
    title:"列表页",
    show:true,
    children:[{
        path:'/list/biaozhun',
        component:lazy(()=>import('../views/list/Biaozhun')),
        title:"标准类表",
        show:true
    },
    {
        path:'/list/chaxun',
        component:lazy(()=>import('../views/list/Chaxun')),
        title:"查询类别",
        show:true
    },
    {
        path:'/list/serch',
        component:lazy(()=>import('../views/list/Serch')),
        title:"搜索列表",
        show:true
    },

]
},{
    path:'/login',
    component: lazy(()=>import('../views/Login')),
    title:"登录页",
    show:false
},
{
    path:'/details',
    component: lazy(()=>import('../views/Details')),
    title:"详情",
    show:false
},{
    path:'/',
    redirect: '/dashboard',
    show:false  
}]
export default routes